x86/cpufeatures: Hide Instruction Based Sampling from guests
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Jan 2017 14:48:57 +0000 (14:48 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 25 Jan 2017 10:26:29 +0000 (10:26 +0000)
commitc783556d71084c8111ce17304992c2e85f0e0346
tree5cc11af069c587c9874d141229b885639f242a98
parent56e8e81fba32cc87d3c5157c9443c189834cd3bb
x86/cpufeatures: Hide Instruction Based Sampling from guests

Xen advertises the IBS feature flag to guests on capable AMD hardware.
However, the PV path in Xen, and both the PV and HVM paths in libxc
deliberately clobber the IBS CPUID leaf.

Furthermore, Xen has nothing providing an implementation of the IBS MSRs, so
guests can't actually use the feature at all.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c
xen/include/public/arch-x86/cpufeatureset.h